﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HotelSoft.HotelManagement_DAO;
using System.Collections;
using System.Data;
using HotelSoft.HotelManagement_DTO;
namespace HotelSoft.HotelManagement_BUS
{
    public class PhongBUS : AbstractBUS
    {
        private PhongDAO dao = new PhongDAO();

        public DataTable SelectAll()
        {
            return PhongDAO.SelectAll();
        }
        public DataTable SelectAlls()
        {
            return PhongDAO.SelectAlls();
        }

        public ArrayList LayDanhSachPhong()
        {
            return dao.LayDanhSachPhong();
        }

        public DataTable tablePhongdondulieus(object AbstractDTO)
        {
            return PhongDAO.CapNhatPhongdondulieus(AbstractDTO);
        }

        public override bool Them(object AbstractDTO)
        {
            return dao.Them(AbstractDTO);
        }

        public override void Xoa(ArrayList dsPhong)
        {
            dao.Xoa(dsPhong);
        }

        public override bool CapNhatThongTin(object AbstractDTO)
        {
            return dao.CapNhatThongTin(AbstractDTO);
        }

        
        public int LayMaSoPhongCuoiCung()
        {
            return dao.LayMaSoPhongCuoiCung();
        }

        public ArrayList getListPhong(string ma)
        {
            return dao.getListPhong(ma);
        }

        public List<PhongDTO> getListPhong1(string ma)
        {
            return dao.getListPhong1(ma);
        }

        public ArrayList TraCuuPhong(ArrayList dsPhong, PhongDTO dtoPhongCanTraCuu)
        {
            return dao.TraCuuPhong(dsPhong, dtoPhongCanTraCuu);
        }
       

        public DataTable dataTablegetListPhong(string ma)
        {
            return dao.dataTablegetListPhong(ma);
        }

        public DataTable dataTablegetListPhong1(string ma)
        {
            return dao.dataTablegetListPhong1(ma);
        }
        public bool KiemTraSoPhong(string Ma)
        {
            return dao.KiemTraSoPhong(Ma);
        }

        public DataTable report_dulieuPhong(string MaPhong)
        {
            return dao.report_dulieuPhong(MaPhong);
        }
        public bool tablePhongdondulieu(object AbstractDTO)
        {
            return PhongDAO.CapNhatPhongdondulieu(AbstractDTO);
        }

        public bool KTMA(object AbstractDTO)
        {
            return dao.KTMA(AbstractDTO);
        }
    }
}
